<?php

class VoteAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $wish_uid = $this->getRequest()->getQuery('wish_uid');
        if (!$wish_uid) $wish_uid = $this->getRequest()->getPost('wish_uid');
        $response = (new \Biz\service\springHomeDecActivity\SSpringHomeDecVote($this->uid, $wish_uid))->run();
        $this->setSuccess($response);
    }
}